import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-workspacedefult',
  templateUrl: './workspacedefult.component.html',
  styleUrls: ['./workspacedefult.component.css']
})
export class WorkspacedefultComponent implements OnInit {

  constructor() { }

  ngOnInit() {
    // 用require动态加载的外部JS
    require('custom');
  }

}
